/**
 * 函数发生错误时，展示信息
 * @param XMLHttpRequest
 * @param textStatus
 * @param errorThrown
 */
function showErrorInfo(XMLHttpRequest, textStatus,errorThrown) {
    if(XMLHttpRequest.status === 200){
        alert("权限请求出错！错误代码（" + XMLHttpRequest.status + "," + XMLHttpRequest.readyState + "," + XMLHttpRequest.responseText + "）");
    }else {
        if (XMLHttpRequest.status >= 400 && XMLHttpRequest.status < 500) {
            alert("客户端请求出错！错误代码（" + XMLHttpRequest.status + "," + XMLHttpRequest.readyState + "," + XMLHttpRequest.responseText + "）");
        } else {
            if (XMLHttpRequest.status >= 500 && XMLHttpRequest.status <= 600) {
                alert("服务器出错！错误代码（" + XMLHttpRequest.status + "," + XMLHttpRequest.readyState + "," + XMLHttpRequest.responseText + "）");
            } else {
                if (XMLHttpRequest.status >= 300 && XMLHttpRequest.status < 400) {
                    alert("重定向问题！错误代码（" + XMLHttpRequest.status + "," + XMLHttpRequest.readyState + "," + XMLHttpRequest.responseText + "）");
                } else {
                    alert("抱歉，系统好像出现一些异常！错误代码（" + XMLHttpRequest.status + "," + XMLHttpRequest.readyState + "," + XMLHttpRequest.responseText + "）");
                }
            }
        }
    }
}